//* //例1：
//* //feature.attributes中表示权重的字段为height,则在HeatMapWeight的featureWeight参数赋值为"height"
//* feature1.attributes.height = 4.0; * feature2.attributes.height = 1.0; *
//var heatMapLayer = new SuperMap.Layer.HeatMapWeight("heatmaplayer", {
//	"featureWeight": "height"
//}); * //items数组形如：
//*
//var items = [ * { * start: 0,
//	* end: 2,
//	* startColor: new SuperMap.REST.ServerColor(255, 0, 0),
//	* endColor: new SuperMap.REST.ServerColor(200, 0, 0) *
//}, * { * start: 2,
//	* end: 4,
//	* startColor: new SuperMap.REST.ServerColor(200, 0, 0),
//	* endColor: new SuperMap.REST.ServerColor(100, 0, 0) *
//} * ]; *
//* heatMapLayer.items = items; * heatMapLayer.addFeatures([feature1, feature2]);
//获取该要素的配色方案
function getFillColorItems(element) {
	var items = null;
	if (element == "2T"||element == "TMP")
		// items = setLegend(page.CurrentDatasetGrid.dMin[page.CurrentValidIndex],page.CurrentDatasetGrid.dMax[page.CurrentValidIndex],heatMap_TempStyles);
        items = setLegend(DataGridAll.TMP.dMin[0],DataGridAll.TMP.dMax[0],heatMap_TempStyles);
	else if (element == "ER03"||element == "ER12")
		items = heatMap_Rain12Styles;
	else if(element=="ER24"){
        items = heatMap_Rain24Styles;
	}
	else if (element == "EDA10" )
		items = heatMap_10uvStyles;
	else if (element == "ERH"||element == "ERHI"||element == "ERHA"){
        items = heatMap_RHStyles;
	}
	else if(element == "ECT"){
        items = heatMap_TCCStyles;
	}else if(element =="PPH"){
        items = heatMap_PPHStyles;
    }
	else
		items = setLegend(0,40,heatMap_TempStyles);
	return items;
};

function AirPressure() {
    var highStyles = [
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}},
        {start:1000,end:1100,startColor:{red:255,green:255,blue:255,alpha:0}}
    ];
    return highStyles;
}

function HighWindColor() {
    var highStyles = [
        {start:0.0,end:0.3,caption:"无风",legend:"无风",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind0.png"},/*无风*/
        {start:0.3,end:1.6,caption:"1级",legend:"1级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind1.png"},/*1级*/
        {start:1.6,end:3.4,caption:"2级",legend:"2级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind2.png"},
        {start:3.4,end:5.5,caption:"3级",legend:"3级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind3.png"},
        {start:5.5,end:8.0,caption:"4级",legend:"4级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind4.png"},
        {start:8.0,end:10.8,caption:"5级",legend:"5级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind5.png"},
        {start:10.8,end:13.9,caption:"6级",legend:"6级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind6.png"},
        {start:13.9,end:17.2,caption:"7级",legend:"7级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind7.png"},
        {start:17.2,end:20.8,caption:"8级",legend:"8级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind8.png"},
        {start:20.8,end:24.5,caption:"9级",legend:"9级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind9.png"},
        {start:24.5,end:28.5,caption:"10级",legend:"10级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind10.png"}, /*10级*/
        {start:28.5,end:32.7,caption:"11级",legend:"11级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind11.png"},
        {start:32.7,end:36.9,caption:"12级",legend:"12级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind12.png"},
        {start:37.0,end:41.4,caption:"13级",legend:"13级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind13.png"},
        {start:41.5,end:46.1,caption:"14级",legend:"14级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind14.png"},
        {start:46.2,end:50.9,caption:"15级",legend:"15级",startColor:{red:255,green:255,blue:255,alpha:0},image:"./img/wind/wind15.png"}
        // {start:51.0,end:56.0,caption:"16级",legend:"16级",startColor:{red:134,green:21,blue:138},image:"./img/wind/wind16.png"},
        // {start:56.1,end:61.2,caption:"17级",legend:"17级",startColor:{red:200,green:17,blue:169},image:"./img/wind/wind17.png"} /*17级*/
    ];
    
    return highStyles;
}